package com.raymond.entity.commons;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.raymond.config.CustomerIntegerEnumDeserializer;
import com.raymond.config.CustomerIntegerEnumSerializer;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * desc-通用状态枚举常量
 *
 * @author houmenghe
 * @date 2025/04/21 20:01
 **/
@Getter
@AllArgsConstructor
@JsonDeserialize(using = CustomerIntegerEnumDeserializer.class)
@JsonSerialize(using = CustomerIntegerEnumSerializer.class)
public enum CommonStatusEnum implements BaseEnum {

    /**
     * 正常
     */
    OK(1, "正常"),

    /**
     * 已删除
     */
    DELETE(-999, "已删除"),

    /**
     * 已禁用
     */
    ABOLITION(0, "已禁用");

    private final Integer value;

    private final String desc;
}
